package com.focus.xyz.main.pages;

import com.focus.xyz.core.common.keyword.Action;
import com.focus.xyz.core.pages.BasePage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

/**
 * Created by chenmeng on 2016/7/27.
 */
public class ApolloMemberInfoPage extends BasePage{
    private Action action;

    @FindBy(id = "addinsurant")
    private WebElement addLink;
    @FindBy(xpath = "//table[@class='ins-tab']")
    private WebElement contactTab;

    public ApolloMemberInfoPage(WebDriver driver, Action action) {
        super(driver, action);
        this.action = action;
        PageFactory.initElements(driver,this);
    }

    public void clickAddLink() throws Exception{
        action.click(addLink);
    }
}
